package com.kate.mall.bff.wx.feign;

import com.kate.mall.bff.wx.controller.form.SearchMessageForm;
import com.kate.mall.common.annotation.LoginUser;
import com.kate.mall.common.utils.R;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import javax.validation.Valid;
import java.util.Map;

@FeignClient(value = "kate-mall-snm")
public interface SnmFeignClient {
    @GetMapping("/message/refreshMessage")
    @ApiOperation("轮训消息")
    R refreshMessage();

    @PostMapping("/message/searchMessageByPage")
    R searchMessageByPage(SearchMessageForm searchMessageForm);
    @PostMapping("/message/searchMessageById")
    R searchMessageById(SearchMessageForm searchMessageForm);

    @PostMapping("/message/updateUnreadMessage")
    R updateMessageById(SearchMessageForm searchMessageForm);
}
